package lesson17.cars;

public class SportCar extends Car{
	
	protected boolean isCabriolet = true;
	private int price;
		
	void switchTurbo()
	{
		System.out.println("Turbo!");
		super.accelerate(currentSpeed*2);
	}

	SportCar()
	{
		super(320);
	}
	
	@Override
	protected void accelerate(double speed)
	{
		System.out.println("Sport Car is accelerating!");
		super.accelerate(125);
		if(currentSpeed >= 150)
			switchTurbo();
	}
	
	@Override
	void startEngine() {
		System.out.println("Sport Car engine started!");
	}
	
	@Override
	public String toString() {
		String data = "Cabrio: " + isCabriolet;
		return data;
	}
	
}
